home *** CD-ROM | disk | FTP | other *** search
/ Interactive Web Graphics with Shout 3D / Interactive Web Graphics With Shout 3D.iso / mac / Shout3Ddemo / docs / workflow_tutorial / references / shoutbox2.wrl < prev    next >
Text File  |  2000-11-13  |  2KB  |  60 lines

  1. #VRML V2.0 utf8
  2.  
  3. DEF TIMER TimeSensor {
  4.   cycleInterval 10
  5.   loop TRUE
  6.   startTime 0
  7. }
  8.  
  9. DEF INTERP OrientationInterpolator {
  10.   key [0, 1.0]
  11.   keyValue [
  12.         0 1 0 0,
  13.         0 1 0 3.14
  14.         ]
  15. }
  16.  
  17. DEF TRANS Transform {
  18.   translation 0 0 0
  19.   rotation 0 1 0 0    
  20.   children [
  21.  
  22.     Shape {
  23.       appearance Appearance {
  24.         material Material {
  25.           diffuseColor 0.5373 0.1961 0.1961
  26.           ambientIntensity 0.1033
  27.           specularColor 0.045 0.045 0.045
  28.           shininess 0.2875
  29.           transparency 0
  30.         }
  31.         texture ImageTexture {
  32.           url "shout3dlogo.gif"
  33.         }
  34.       }
  35.       geometry IndexedFaceSet {
  36.         coord Coordinate { point [
  37.           -50 0 50, 50 0 50, -50 0 -50, 50 0 -50, -50 100 50, 50 100 50, 
  38.           -50 100 -50, 50 100 -50]
  39.         }
  40.         texCoord TextureCoordinate { point [
  41.           1 0, 0 0, 0 0, 0 0, 1 1, 0 1, 0 1, 0 1, 1 0, 1 1, 0 1, 
  42.           0 1, 0 0, 1 0, 0 0, 1 0, 1 1, 1 1, 0 1, 0 0, 0 0, 1 0, 
  43.           1 1, 1 1, 0 1, 0 0, 0 0, 1 0, 1 1, 1 1, 0 0, 1 0, 1 1, 
  44.           1 1, 0 0, 1 1]
  45.         }
  46.         coordIndex [
  47.           0, 2, 3, -1, 3, 1, 0, -1, 4, 5, 7, -1, 7, 6, 4, -1, 0, 1, 5, -1, 
  48.           5, 4, 0, -1, 1, 3, 7, -1, 7, 5, 1, -1, 3, 2, 6, -1, 
  49.           6, 7, 3, -1, 2, 0, 4, -1, 4, 6, 2, -1]
  50.         texCoordIndex [
  51.           8, 9, 10, -1, 11, 12, 13, -1, 14, 15, 16, -1, 17, 18, 19, -1, 
  52.           20, 21, 22, -1, 23, 24, 25, -1, 26, 27, 28, -1, 29, 5, 1, -1, 
  53.           30, 31, 32, -1, 33, 7, 3, -1, 34, 0, 35, -1, 4, 6, 2, -1]
  54.         }
  55.     }
  56.   ]
  57. }
  58.  
  59. ROUTE TIMER.fraction_changed TO INTERP.set_fraction
  60. ROUTE INTERP.value_changed To TRANS.set_rotation